package com.nimitz.module.demo.service.impl;

import com.nimitz.module.demo.domain.DemOrder;
import com.nimitz.module.demo.mapper.DemOrderDtoMapper;
import com.nimitz.module.demo.service.IDemoOrderDtoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoOrderDtoServiceImpl implements IDemoOrderDtoService {

    @Resource
    DemOrderDtoMapper demOrderDtoMapper;

    /**
     * 根据条件查询订单列表（含分页）
     *
     * @param demOrder     订单dto
     * @return 订单集合
     */
    @Override
    public List<DemOrder> selectOrderListDto(DemOrder demOrder) {
        return demOrderDtoMapper.selectOrderListDto(demOrder);
    }
}
